<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>TP Web Services</title>
  </head>
  <body>
    <h1>{% block title %}TP Web Services{% endblock title %}</h1>
    <ul id="top-links">
      <li><a href="{% url home %}">Home</a></li>
      <li><a href="{% url tp_oauth_index %}">Profile (TP OAuth)</a></li>
      <li id="login">
      {% if user.is_authenticated %}
          <a href="{% url logout %}">Logout ({{ user.username }})</a>
      {% else %}
          <a href="{% url login %}">Login (TP OpenID)</a>
      {% endif %}
      </li> <!-- login -->
    </ul> <!-- top-links -->

    <div id="content">
    {% block content %}
    {% endblock content %}
    </div> <!-- content -->
  </body>
</html>
